package org.javaboy.vhr.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.javaboy.vhr.model.Resign;

import java.util.List;

@Mapper
public interface ResignMapper {
    List<Resign> getAllResigns(@Param("page") Integer page, @Param("size") Integer size, @Param("keywords") String keywords);

    Long getTotal(@Param("keywords") String keywords);

    Resign getResignById(@Param("id") Integer id);

    int updateResignStatus(Resign resign);

    int addResign(Resign resign);

    int deleteResign(@Param("id") Integer id);
}
